package com.lokyiu.tutorial.java.exerisce4;

import java.util.ArrayList;
import java.util.List;

public class Class {
	private List<Student> students;
	private String classId;
	
	public Class(){
		
	}
	
	public void setStudents(List<Student> students){
		this.students=students;
	}

	public void setClassId(String classId){
		this.classId=classId;
	}
	
	public List<Student> getStudents() {
		return students;
	}

	public String getClassId(){
		return this.classId;
	}
	
	public void setStudents(Student student){
		List<Student> students = new ArrayList<Student>();
		students.add(student);
		this.students=students;
	}
	
}
